<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>NCEE580网注册</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.0.0.min.js"></script>
 	<script type="text/javascript">
  		function changeImg(img){
  			img.src = img.src+"?time="+new Date().getTime();
  		}
  	</script>

</head>
<body>
	<form:form action="register.do" method="POST" modelAttribute="registeForm">
		<table align="center">
		<tr>
			<td><h1>请输入注册信息注册</h1></td>
		</tr>
		<tr>
			<td>用户名：</td>
			<td> <form:input path="name"/></td>
			<td><form:errors path="name"></form:errors></td>
			<td><font color="red">${requestScope.nameMsg }</font></td>
		</tr>
		<tr>
			<td>注册邮箱：</td>
			<td> <form:input path="email"/></td>
			<td><form:errors path="email"></form:errors></td>
			<td><font color="red">${requestScope.emailMsg }</font></td>
		</tr>
		<tr>
			<td>密码：</td>
			<td> <form:password path="password"/></td>
			<td><form:errors path="password"></form:errors></td>
		</tr>
		<tr>
			<td>确认密码：</td>
			<td> <form:password path="password2"/></td>
			<td><form:errors path="password2"></form:errors></td>
			<td><font color="red">${requestScope.passwordMsg }</font></td>
		</tr>
		<tr>
			<td>输入下图验证码：</td>
			<td><form:input path="valistr"/></td>
			<td><font color="red">${requestScope.valistrMsg }</font></td>
		</tr>
		<tr>
			<td><img title="点击刷新" alt="验证码" src="${pageContext.request.contextPath}/VerificationCode/valiImg.do" onclick="changeImg(this)" style="cursor: pointer;"/></td>			
		</tr>
		<tr>
			<td><input type="hidden" value="<%=session.getAttribute("formuuid")%>"></td>
		</tr>
		<tr>
			<td><input type="submit"  value="注册"/></td>
		</tr>
		</table>
	</form:form>
	
</body>
</html>